//
//  CouponCell.m
//  DianDangDai
//
//  Created by bhf on 2017/12/17.
//  Copyright © 2017年 bhf. All rights reserved.
//

#import "CouponCell.h"

@implementation CouponCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _use.layer.cornerRadius = 2;
    _use.layer.borderWidth = 0.5;
    _use.layer.borderColor = [THE_MASS_TONE_ATTUNE CGColor];
    
    // Initialization code
}

- (void)setModel:(CouponModel *)model {
    _model = model;
    _amount.text = [NSString stringWithFormat:@"%ld元",model.money];
    if (model.use_condition != 0) {
        _use_condition.text = [NSString stringWithFormat:@"满%ld元可用",model.use_condition];
    } else {
        _use_condition.text= @"";
    }
    
    _youxiaoqi.text = [NSString stringWithFormat:@"到期时间：%@",model.yxq_date];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
